-- ============
/*<code_comment><![CDATA[declare local variables]]></code_comment>*/
DECLARE	@cursor CURSOR
			, @table_name NVARCHAR(128)
-- ============

-- ============
/*<code_comment><![CDATA[begin cursor: for each table]]></code_comment>*/
SET @cursor = CURSOR FOR
	SELECT TABLE_NAME
	FROM INFORMATION_SCHEMA.TABLES

OPEN @cursor

FETCH NEXT FROM @cursor INTO @table_name

WHILE @@FETCH_STATUS <> -1
BEGIN
	-- ============
	/*<code_comment><![CDATA[print table name]]></code_comment>*/
	PRINT(@table_name)
	-- ============

	FETCH NEXT FROM @cursor INTO @table_name
END
/*<code_comment><![CDATA[end cursor: for each table]]></code_comment>*/
-- ============
